package com.canyou.oss;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 本地文件上传配置属性
 *
 * @author fy
 * @date 20/02/18 20:35
 */
@Data
@Configuration
@ConditionalOnProperty(prefix = "oss.local", name = "upload-path")
@ConfigurationProperties(prefix = "oss.local")
public class LocalUploadProperties {

    /**
     * 本地文件上传基路径, 如果为绝对路径, 则直接使用绝对路径, 线上请使用绝对路径
     */
    private String uploadPath;

}
